package cn.jcby.app.lebu.controller.req;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * @author: lihaotian
 * @since: 2023/12/14 01:30
 * @description
 **/
@Data
@ApiModel(value = "编辑/结束个人运动请求实体", description = "编辑个人运动请求实体")
public class UpdatePersonMotionReq {

    @ApiModelProperty("id")
    @NotNull(message = "运动id不能为空")
    private Integer id;

    @ApiModelProperty("结束位置名称")
    private String endLocation;
    @ApiModelProperty("结束坐标：POINT(经度 纬度)")
    @NotBlank(message = "结束坐标不能为空")
    private String endLocationPoint;

    @ApiModelProperty("路线：LINESTRING(经度 纬度,经度 纬度)")
    @NotBlank(message = "路线不能为空")
    private String route;

    @ApiModelProperty("完成里程：单位米")
    @NotNull(message = "完成里程不能为空")
    private BigDecimal mileage;
    @ApiModelProperty("步数")
    @NotNull(message = "步数不能为空")
    private Integer stepNum;
    @ApiModelProperty("运动耗时：单位秒")
    @NotNull(message = "运动耗时不能为空")
    private Integer timeConsume;
    @ApiModelProperty("用户id，不用传递该参数")
    private String userId ;
}
